<template>
	<view>
		<web-view :src="url" @message="getMessage"></web-view>
	</view>
</template>

<script>
	import {myMixins} from '@/common/myMixins.js'
	export default{
		mixins:[myMixins],
		data() {
			return {
				url: 'https://www.v5kf.com/public/chat/chat?sid=176101&entry=5&ref=link&accountid=2afe50301d2ef'
			}
		},
		onLoad(options) {
			if (options && options.url) {
				console.log(options.url)
				this.url = options.url;
			}
		},
		methods: {
			getMessage(event) {
				uni.showModal({
					content: JSON.stringify(event.detail),
					showCancel: false
				});
			}
		}
	}
</script>

<style>

</style>
